package com.raise.drive.web.form;

import com.raise.drive.model.domain.Instructor;
import com.raise.drive.model.domain.Vehicle;

import java.util.List;
import java.util.ArrayList;

/**
 * @author Eugene Rozov
 */
public class InstructorForm {

    public static final int MAX_ADITIONAL_CARS = 10;

    private Instructor instructor = new Instructor();

    private Vehicle vehicle = new Vehicle();

    private List<Vehicle> additionalVehicles = new ArrayList<Vehicle>();

    private boolean[] usedVehicle = new boolean[MAX_ADITIONAL_CARS];

    public InstructorForm() {
        for (int i = 0; i < MAX_ADITIONAL_CARS; i++) {
            additionalVehicles.add(new Vehicle());
        }
    }

    public Instructor getInstructor() {
        return instructor;
    }

    public void setInstructor(Instructor instructor) {
        this.instructor = instructor;
    }

    public Vehicle getVehicle() {
        return vehicle;
    }

    public void setVehicle(Vehicle vehicle) {
        this.vehicle = vehicle;
    }

    public List<Vehicle> getAdditionalVehicles() {
        return additionalVehicles;
    }

    public void setAdditionalVehicles(List<Vehicle> additionalVehicles) {
        this.additionalVehicles = additionalVehicles;
    }

    public boolean[] getUsedVehicle() {
        return usedVehicle;
    }

    public void setUsedVehicle(boolean[] usedVehicle) {
        this.usedVehicle = usedVehicle;
    }
}
